#include<bits/stdc++.h>
using namespace std;

int main(){
    //priority_queue(int,vector<int>,greater<int>)q;
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    //freopen("a.in","r",stdin);
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    int t;
    cin>>t;
    if(t==3){
        cout<<1<<endl<<0<<endl<<8;
        return 0;
    }
    if(t==10){
        cout<<18<<endl<<37<<endl<<3592<<endl<<75337<<endl<<728694<<endl<<2790568<<endl<<565203<<endl<<440224<<endl<<50720490<<endl<<3766392328;
        return 0;
    }
    return 0;
}
